# def average():
#     ret = []
#     i = 0
#     try:
#         while i<6:
#             tmp = input()
#             i+=1
#             if tmp.isdigit():
#                 ret.append(int(tmp))
#             else:
#                 break
#     except EOFError:
#         pass
#     if len(ret)>0:
#         l = len(ret)
#         a = sum(ret)
#         print(a/l)
# if __name__ == "__main__":
#     average()


#
# def average():
#     ret = []
#     i = 0
#     try:
#         while i<6:
#             tmp = input()
#             if tmp.isdigit():
#                 ret.append(int(tmp))
#                 i+=1
#             else:
#                 break
#     except EOFError:
#         pass
#     if len(ret)>0:
#         l = len(ret)
#         a = sum(ret)
#         print(a/l)
# if __name__ == "__main__":
#     average()

a = int(input())
ret = 0
for i in range(1,a+1):
    tmp = 1
    for i in range(1,i):
        tmp*=10
        tmp+=1
    ret+=tmp
print("aaa" and ret)